﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DefaultOld.aspx.cs" Inherits="ZHDJ.Web.Default" %>

<%@ Import Namespace="ZHDJ.Core.Util" %>

<%@ Register Src="PortalParts/Header.ascx" TagName="Header" TagPrefix="uc" %>
<%@ Register Src="PortalParts/Banner.ascx" TagName="Banner" TagPrefix="uc" %>
<%@ Register Src="PortalParts/Menu.ascx" TagName="Menu" TagPrefix="uc" %>
<%@ Register Src="PortalParts/Notice.ascx" TagName="Notice" TagPrefix="uc" %>
<%@ Register Src="PortalParts/Footer.ascx" TagName="Footer" TagPrefix="uc" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>智慧党建</title>
    <link href="Resource/themes/default/css/default.css" rel="stylesheet" />
    <link href="Resource/themes/default/css/superfish.css" rel="stylesheet" />
    <script src="Resource/js/default/jquery.min.js"></script>
    <script src="Resource/js/superfish/hoverIntent.js"></script>
    <script src="Resource/js/superfish/superfish.js"></script>
    <script src="Resource/js/default/jquery.SuperSlide.2.1.js"></script>
    <link href="Resource/themes/default/css/index-slidelf.css" rel="stylesheet" />
    <script src="Resource/js/jquery/slidelf.js"></script>
    <link rel="shortcut icon" href="Resource/themes/default/images/Default/zhdj.ico" type="image/x-icon" />
    <script src="Resource/js/float.js" type="text/javascript"></script>
    <style>
        .djgz_box .djgz_nr {
            padding: 0;
        }

        .dltop {
            padding-top: 5px;
        }

            .dltop dd {
                margin-right: 0;
            }

        .phone {
            width: 114px;
            height: 78px;
        }
    </style>

</head>
<body onload="time();">
    <form id="form1" runat="server">
        <div id="container">
            <uc:Header ID="header" runat="server" />
            <uc:Banner ID="banner" runat="server" />
            <uc:Menu ID="menu" runat="server" />
            <uc:Notice runat="server" ID="Notice" />
            <div class="inbox">
                <div class="clear"></div>
                <div class="tpnews">
                    <div class="TB-focus">
                        <div class="hd">
                            <ul>
                                <asp:Literal ID="ltNumber" runat="server"></asp:Literal>
                            </ul>
                        </div>
                        <div class="bd">
                            <ul style="position: relative; width: 314px; height: 246px;">
                                <asp:Repeater ID="rpArticleImage" runat="server">
                                    <ItemTemplate>
                                        <li style="position: absolute; width: 314px; left: 0px; top: 0px; display: list-item;">
                                            <a href='<%#"ArticleDetailContent.aspx?id="+Eval("ID") %>' target="_blank">
                                                <img src='<%#ZHDJ.WebPage.UpFileBusiness.GetFileUrl(Eval("ImageID").ToString()) %>' width="306" height="214" />
                                                <p>
                                                    <%#CutLongTitle(Eval("Title"), 18) %>
                                                </p>
                                            </a>
                                        </li>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </ul>
                        </div>
                    </div>
                    <script type="text/javascript">
                        jQuery(".TB-focus").slide({
                            mainCell: ".bd ul",
                            effect: "fold",
                            autoPlay: true,
                            delayTime: 200
                        });

                    </script>
                </div>
                <!--工作动态开始-->
                <div class="ttnews">
                    <div class="ttnews_title" style="width: 326px">
                        <h2>
                            <span><a href="MorePage.aspx?module=DynamicWork" target="_blank">更多&gt;&gt;</a></span>工作动态
                        </h2>
                    </div>
                    <div class="ywsd" style="padding-top: 5px; height: 230px;">
                        <dl class="part_dll" style="padding: 0; margin-top: 5px">
                            <asp:Repeater ID="rpWorkDynamics" runat="server">
                                <ItemTemplate>
                                    <dd>
                                        <a href='<%#"ArticleDetailContent.aspx?id="+Eval("ID") %>' target="_blank" title='<%#Eval("Title") %>'><%#CutLongTitle(Eval("Title"), 18) %></a>
                                    </dd>
                                </ItemTemplate>
                            </asp:Repeater>
                        </dl>
                    </div>
                </div>
                <!--工作动态结束-->
                <div class="ttnews">
                    <div class="ttnews_title" style="width: 326px">
                        <h2>
                            <span><a href="MorePage.aspx?module=Announcement" target="_blank">更多&gt;&gt;</a></span>通知公告
                        </h2>
                    </div>
                    <div class="ywsd" style="padding-top: 5px; height: 230px;">
                        <dl class="part_dll" style="padding: 0;">
                            <asp:Repeater ID="rpNotificationAnnouncement" runat="server">
                                <ItemTemplate>
                                    <dd>
                                        <a href='<%#"ArticleDetailContent.aspx?id="+Eval("ID") %>' target="_blank" title='<%#Eval("Title") %>'><%#CutLongTitle(Eval("Title"), 18) %></a>
                                    </dd>
                                </ItemTemplate>
                            </asp:Repeater>
                        </dl>
                    </div>
                </div>
            </div>
            <div class="clearfix" style="margin-top: 10px">
                <div class="bindex_left">
                    <div class=" bindex_small_part">
                        <div class="bindex_branchinfo bindex_small_part_title">
                            <div class=" bindex_small_part_title_span">
                                <span>积分排名</span> <a href="Portal/PartyScore.aspx" target="_blank" class="bindex_more">更多>></a>
                            </div>
                            <div style="padding-left: 6px; padding-right: 6px;">
                                <div class="listtab clearfix">
                                    <a tab="personalrank" class="lovetab2">个人排名</a> <a tab="brankrank">组织排名</a>
                                </div>
                                <div class="listtabcontent" id="personalrank">
                                    <dl class="rank_dld">
                                        <dt><span class="spans1">名次</span><span class="spans1">姓名</span><span class="spans2" style="text-align: center;">组织</span><span class="spans1">积分</span></dt>
                                        <asp:Repeater runat="server" ID="rpRankMember">
                                            <ItemTemplate>
                                                <dd>
                                                    <span class="spans1">
                                                        <b id='<%# Convert.ToInt32(Eval("Rank"))<4?"bb":"rank"+Container.ItemIndex %>'><%# Eval("Rank") %></b>

                                                    </span>
                                                    <span class="spansna" title='<%# Eval("UserName") %>'><%# StringHelper.SubstringShort(5,Eval("UserName").ToString(),3) %></span>
                                                    <span class="spansba" title='<%# Eval("BranchName") %>'><%# StringHelper.SubstringShort(11, Eval("BranchName").ToString(),9) %></span>
                                                    <span class="spans1"><%# Eval("Score") %></span>
                                                </dd>
                                            </ItemTemplate>
                                        </asp:Repeater>

                                    </dl>
                                </div>
                                <div class="listtabcontent" id="brankrank" style="display: none">
                                    <dl class="rank_dld">
                                        <dt><span class="spans1">名次</span><span class="spans3" style="text-align: center;">组织</span><span class="spans1">积分</span></dt>
                                        <asp:Repeater runat="server" ID="rpRankBranch">
                                            <ItemTemplate>
                                                <dd>
                                                    <span class="spans1">
                                                        <b id='<%# Convert.ToInt32(Eval("Rank"))<4?"bb":"rank"+Container.ItemIndex %>'><%# Eval("Rank") %></b>
                                                    </span>
                                                    <span class="spans3"><%# Eval("BranchName") %></span>
                                                    <span class="spans1"><%# Eval("Score") %></span>
                                                </dd>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                    </dl>

                                </div>
                            </div>
                        </div>

                    </div>
                </div>

                <div class="bindex_right">
                    <div class=" bindex_big_part">
                        <div class=" bindex_big_part_title" style="height: 468px">
                            <div class="bindex_big_part_title_span">
                                <span>党建工作</span>
                            </div>
                            <div style="padding: 5px 0 0 10px">
                                <div class="djgz">
                                    <div class="djgz_box">
                                        <div class="djgz_title twopart" style="background-image: none">
                                            <h2>
                                                <span><a href="MorePage.aspx?module=PartyBuildingWork&category=PartyOpen" target="_blank">更多&gt;&gt;</a></span>党务公开
                                            </h2>
                                        </div>
                                        <div class="djgz_nr">
                                            <dl class="part_dll dltop">
                                                <asp:Repeater ID="rpPartyWork" runat="server">
                                                    <ItemTemplate>
                                                        <dd>
                                                            <a href='<%#"ArticleDetailContent.aspx?id="+Eval("ID") %>' target="_blank" title='<%#Eval("Title") %>'><%#CutLongTitle(Eval("Title"), 20) %></a>
                                                        </dd>
                                                    </ItemTemplate>
                                                </asp:Repeater>

                                            </dl>
                                        </div>
                                    </div>
                                    <div class="djgz_box" style="margin-left: 5px;">
                                        <div class="djgz_title twopart" style="background-image: none">
                                            <h2>
                                                <span><a href="MorePage.aspx?module=PartyBuildingWork&category=Basic" target="_blank">更多&gt;&gt;</a></span>基层党建
                                            </h2>
                                        </div>
                                        <div class="djgz_nr">
                                            <dl class="part_dll dltop">
                                                <asp:Repeater ID="rpGrassRoots" runat="server">
                                                    <ItemTemplate>
                                                        <dd>
                                                            <a href='<%#"ArticleDetailContent.aspx?id="+Eval("ID") %>' target="_blank" title='<%#Eval("Title") %>'><%#CutLongTitle(Eval("Title"), 24) %></a>
                                                        </dd>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </dl>
                                        </div>
                                    </div>
                                    <div class="djgz_box">
                                        <div class="djgz_title twopart" style="background-image: none">
                                            <h2>
                                                <span><a href="MorePage.aspx?module=PartyBuildingWork&category=Policy" target="_blank">更多&gt;&gt;</a></span>政策法规
                                            </h2>
                                        </div>
                                        <div class="djgz_nr">
                                            <dl class="part_dll dltop">
                                                <asp:Repeater ID="rpPolicy" runat="server">
                                                    <ItemTemplate>
                                                        <dd>
                                                            <a href='<%#"ArticleDetailContent.aspx?id="+Eval("ID") %>' target="_blank" title='<%#Eval("Title") %>'><%#CutLongTitle(Eval("Title"), 24) %></a>
                                                        </dd>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </dl>
                                        </div>
                                    </div>
                                    <div class="djgz_box" style="margin-left: 5px;">
                                        <div class="djgz_title twopart" style="background-image: none">
                                            <h2>
                                                <span><a href="MorePage.aspx?module=PartyBuildingWork&category=Guide" target="_blank">更多&gt;&gt;</a></span>办事指南
                                            </h2>
                                        </div>
                                        <div class="djgz_nr">
                                            <dl class="part_dll dltop">

                                                <asp:Repeater ID="rpGuid" runat="server">
                                                    <ItemTemplate>
                                                        <dd>
                                                            <a href='<%#"ArticleDetailContent.aspx?id="+Eval("ID") %>' target="_blank" title='<%#Eval("Title") %>'><%#CutLongTitle(Eval("Title"), 24) %></a>
                                                        </dd>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </dl>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="clearfix">
                <div class="bindex_left">
                    <div class=" bindex_small_part">
                        <div class="bindex_1 bindex_small_part_title" style="height: 471px">
                            <div class=" bindex_small_part_title_span">
                                <span>志愿活动</span>
                            </div>
                            <div style="padding: 10px 10px 0px 10px">

                                <div class="djgz_box">
                                    <div class="djgz_title twopart" style="background-image: none">
                                        <h2>
                                            <span><a href="MorePage.aspx?module=VolunteerActivitie&category=Call" target="_blank">更多&gt;&gt;</a></span>最新召集
                                        </h2>
                                    </div>
                                    <div class="djgz_nr ">
                                        <dl class="part_dll dltop">
                                            <asp:Repeater ID="rpVolunteerActivitieCall" runat="server">
                                                <ItemTemplate>
                                                    <dd>
                                                        <a target="_blank" href='<%#"Portal/VolunteerActivitie/VolunteerActiviteDetail.aspx?ID="+Eval("ID") %>'><span style="color: red; float: none; font-weight: normal;"><%#"["+Eval("IsEndName")+"]" %></span><%#Eval("Title").ToString().Length > 15? Eval("Title").ToString().Substring(0,15)+"...":Eval("Title") %></a>
                                                    </dd>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </dl>
                                    </div>
                                </div>
                                <div class="djgz_box" style="margin-left: 5px;">
                                    <div class="djgz_title twopart" style="background-image: none">
                                        <h2>
                                            <span><a href="MorePage.aspx?module=VolunteerActivitie&category=Quotation" target="_blank">更多&gt;&gt;</a></span>志愿者心语
                                        </h2>
                                    </div>
                                    <div class="djgz_nr">
                                        <dl class="part_dll dltop">
                                            <asp:Repeater ID="rpVolunteerQuotation" runat="server">
                                                <ItemTemplate>
                                                    <dd>
                                                        <a target="_blank" href='<%#"Portal/VolunteerActivitie/VolunteerQuotationDetail.aspx?ID="+Eval("ID") %>'><%#Eval("Content").ToString().Length > 12? Eval("Content").ToString().Substring(0,12)+"...":Eval("Content") %></a>
                                                    </dd>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </dl>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                </div>
                <div class="bindex_right">
                    <div class="bindex_right_part_small bindex_small_part">
                        <div class="bindex_1 bindex_small_part_title" style="height: 471px">
                            <div class=" bindex_small_part_title_span">
                                <span>党内关爱</span>
                            </div>
                            <div style="padding: 10px 10px 0px 10px">

                                <div class="djgz_box">
                                    <div class="djgz_title twopart" style="background-image: none">
                                        <h2>
                                            <span><a href="/MorePage.aspx?module=partylove&Category=PartyRecruit" target="_blank">更多&gt;&gt;</a></span>党内招聘
                                        </h2>
                                    </div>
                                    <div class="djgz_nr ">
                                        <dl class="part_dll dltop">
                                            <asp:Repeater ID="rpJobHelping" runat="server">
                                                <ItemTemplate>
                                                    <dd>
                                                       <a href='<%#"ArticleDetailContent.aspx?id="+Eval("ID") %>' target="_blank" title='<%#Eval("Title") %>'><%#CutLongTitle(Eval("Title"), 24) %></a>
                                                    </dd>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </dl>
                                    </div>
                                </div>
                                <div class="djgz_box" style="margin-left: 5px;">
                                    <div class="djgz_title twopart" style="background-image: none">
                                        <h2>
                                            <span><a href="/MorePage.aspx?module=partylove&Category=CareInfoCourier" target="_blank">更多&gt;&gt;</a></span>
                                            关爱信息速递
                                        </h2>
                                    </div>
                                    <div class="djgz_nr">
                                        <dl class="part_dll dltop">
                                            <asp:Repeater ID="rpLoveMessage" runat="server">
                                                <ItemTemplate>
                                                    <dd>
                                                        <a href='<%#"ArticleDetailContent.aspx?id="+Eval("ID") %>' target="_blank" title='<%#Eval("Title") %>'><%#CutLongTitle(Eval("Title"), 24) %></a>
                                                    </dd>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </dl>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                    <div class="bindex_right_part_small bindex_small_part bindex_right_part_small_sec">
                        <div class="bindex_1 bindex_small_part_title" style="height: 471px">
                            <div class=" bindex_small_part_title_span">
                                <span>党员论坛</span><a href="Portal/Forum/BBSIndex.aspx" target="_blank" class="bindex_more">进入论坛>></a>
                            </div>

                            <div style="height: 391px">
                                <dl class="part_dll">
                                    <asp:Repeater ID="rptForum" runat="server">
                                        <ItemTemplate>
                                            <dd>
                                                <a href='Portal/Forum/BBSReplyDetails.aspx?ForumID=<%# Eval("ID") %>' target="_blank"><%# StringHelper.SubstringShort(5, Convert.ToString(Eval("ForumTitle")),20) %></a>
                                            </dd>
                                        </ItemTemplate>
                                    </asp:Repeater>

                                </dl>
                            </div>
                            <div style="height: 60px; text-align: center">
                                <a href="Portal/Forum/BBSList.aspx?TypeID=ptwtfk"
                                    target="_blank" class="button-question-feedback  " style="display: inline-block; width: 260px; height: 30px; background: url('Resource/themes/default/images/Party/button-question-feedback.jpg') no-repeat;"></a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="clearfix">
                <a href="Portal/MassLineIndex.aspx" target="_blank">
                    <img src="Resource/themes/default/images/Default/masslineHead.png" style="border: 0;"
                        alt="我要提意见" /></a>
            </div>
            <!--留影墙开始-->
            <div class="clearfix">

                <div class=" lindex_small_part">
                    <div class="lindex_1 lindex_small_part_title" style="min-height: 140px">
                        <div class="lindex_small_part_title_span">
                            <span>留影墙</span> <a href="Portal/PhotoWall/PhotoWallList.aspx?PageIndex=0" target="_blank" class="bindex_more">更多>></a>
                        </div>
                        <div style="margin-top: 10px">
                            <div class="fl-pic">
                                <div class="left-arrow">
                                    <a class="u-prev" style="margin-top: 50px"></a>
                                </div>
                                <ul id="">
                                    <asp:Repeater ID="rptHonorHall" runat="server">
                                        <ItemTemplate>
                                            <li><a href="Portal/PhotoWall/PhotoWallPage.aspx?PhotoWallID=<%#Eval("ID")%>" title='<%#Eval("Describe") %>'>
                                                <img src="<%#Eval("Url")%>" class="phone" /></a></li>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </ul>
                                <div class="right-arrow">
                                    <a class="u-next" style="margin-top: 50px"></a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!--留影墙结束-->
            <div class="clearfix">
                <div class="bindex_left">
                    <div class=" bindex_small_part">
                        <div class="bindex_1 bindex_small_part_title">
                            <div class=" bindex_small_part_title_span">
                                <span>人才天地</span> <a href="MorePage.aspx?module=TalentWorld&category=Announcement" target="_blank" class="bindex_more">更多>></a>
                            </div>
                            <div>
                                <dl class="part_dll">
                                    <asp:Repeater ID="rpTalentWorld" runat="server">
                                        <ItemTemplate>
                                            <dd>
                                                <a href='<%#"ArticleDetailContent.aspx?id="+Eval("ID") %>' target="_blank"><%#CutLongTitle(Eval("Title"), 20) %></a>
                                            </dd>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </dl>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="bindex_right">
                    <div class="bindex_right_part_small bindex_small_part">
                        <div class="bindex_1 bindex_small_part_title">
                            <div class=" bindex_small_part_title_span">
                                <span>机关建设</span><a href="MorePage.aspx?module=OfficeBuilding" target="_blank" class="bindex_more">更多>></a>
                            </div>
                            <div>
                                <dl class="part_dll">
                                    <asp:Repeater ID="rpInstitution" runat="server">
                                        <ItemTemplate>
                                            <dd>
                                                <a href='<%#"ArticleDetailContent.aspx?id="+Eval("ID") %>' target="_blank"><%#CutLongTitle(Eval("Title"), 20) %></a>
                                            </dd>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </dl>
                            </div>
                        </div>
                    </div>
                    <div class="bindex_right_part_small bindex_small_part bindex_right_part_small_sec">
                        <div class="bindex_1 bindex_small_part_title">
                            <div class=" bindex_small_part_title_span">
                                <span>反腐倡廉</span><a href="MorePage.aspx?module=AntiCorruption" target="_blank" class="bindex_more">更多>></a>
                            </div>
                            <div>
                                <dl class="part_dll">
                                    <asp:Repeater ID="rpCorruption" runat="server">
                                        <ItemTemplate>
                                            <dd>
                                                <a href='<%#"ArticleDetailContent.aspx?id="+Eval("ID") %>' target="_blank"><%#CutLongTitle(Eval("Title"), 20) %></a>
                                            </dd>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </dl>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 底部 -->
            <uc:Footer ID="footer" runat="server" />
        </div>
        <div>
            <asp:Literal runat="server" ID="litwindowsshow"></asp:Literal>
        </div>
    </form>
</body>
</html>

<script type="text/javascript">
    var tabf = function () {
        $(".listtab").each(function (i, n) {
            var $tab = $("a", n);
            $tab.each(function (j, m) {
                var showID = $(m).attr("tab");
                $(m).hover(function () {
                    $(".listtabcontent").hide();
                    $tab.removeClass('lovetab2');
                    $(m).addClass("lovetab2");
                    $("#" + showID).show();

                });
            });
        });
    }


    $(function () {
        $(".fl-pic").each(function (i, n) {
            $(n).slidelf({
                "prev": "left-arrow",
                "next": "right-arrow",
                "speed": 2000,
                "min": 8
            });
        });
        tabf();

        //飘窗start
        $(".souyewindowsshow").each(function (i, n) {

            var pos = $(n).attr("position");
            $(n).float({ position: pos });
        });
        $(".piaochuangClose").click(function () {
            $(this).parent().hide();
        });
        //飘窗end
    });

    //入党流程提示信息
    function joinprompt() {
        alert(1);
    }
    //end
</script>
